<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  // const obj = {
  //   name:"admin"
  // }

  // const obj2 = Object.create( obj );

  // console.log( obj );
  // console.log( obj2 );
  
  // console.log( obj.name );
  // console.log( obj2.name );
  
  // console.log( obj2 === obj );
  // console.log( obj2.__proto__ === obj );

  // ============
  
  // console.log( Object.is("hello", "hello") );
  // console.log( Object.is({}, {}) );
  
  // console.log( Object.is(NaN, NaN) );
  
  // ============

  // const obj1 = {name:"admin"};
  // const obj2 = {age:18};
  // const obj3 = Object.assign(obj1, obj2);

  // console.log(obj1);
  // console.log(obj2);
  // console.log(obj3);
  // console.log(obj3 === obj1);
  // console.log(obj3 === obj2);


  // =======


  // const obj = {
  //   name:"admin",
  //   age:19,
  //   sex:"男"
  // }

  // console.log( Object.keys( obj ) );
  // console.log( Object.values( obj ) );


  // =========

  // const obj = {
  //   name:"obj"
  // }
  // console.log( obj.__proto__ === Object.prototype );

  // console.log( Object.getPrototypeOf( obj ) === obj.__proto__ );
  // console.log( Object.getPrototypeOf( obj ) === Object.prototype );


  
  // const obj = {name:"obj"}
  // console.log( obj.__proto__ === Object.prototype );

  // const o = {name:"o"};

  // Object.setPrototypeOf(obj, o);

  // console.log( obj.__proto__ === Object.prototype );
  // console.log( obj.__proto__ === o );

  // console.log(obj)


  // =========




</script>
</html>